/*
 * Copyright (c) ycq_work@163.com
 */

package com.mxg.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mxg.blog.entity.User;

/**
 * @Author: ycq_work@163.com
 * @DATE: 2023/5/8 21:27
 * userServer接口
 */
public interface UserService extends IService<User> {
    User selectUserById(Integer id);

    // 电话查询用户信息
    User getUserByUserPhoneNum(String userPhoneNum);

    // 邮箱查询用户信息
    User getUserByUserEmail(String userEmail);

    // 修改用户数据
    void modifyPersonalInformation(Integer userId,
                                   String userName,
                                   String userEmail,
                                   String userPhone);

    // 修改用户密码
    void modifyPersonalPassword(Integer userId, String userPassword);

    // 修改用户头像
    void modifyPersonalAvatar(Integer userId, String userAvatar);
}
